import { Injectable } from '@nestjs/common';
import { createHash } from 'crypto';

@Injectable()
export class HashService {
  hash(content: string): string {
    return createHash('sha1').update(content, 'utf8').digest('hex');
  }
}
